<div class="jquery_tab">
    <div class="content_block">
        <div class="box-grey frt" style="width:220px;padding:6px">
            <a href="/dataform/liability/new"
               style="text-decoration: none;color: #797878; ">
                <strong>Add New Form Field For Liability</strong> </a>
        </div>
        <?php $flashMessenger = Zend_Controller_Action_HelperBroker::getStaticHelper('FlashMessenger'); ?>

        <h2 class="jquery_tab_title">Manage Liability Form Data</h2>
        <?php if ($flashMessenger->setNamespace('success')->hasMessages()): ?>
            <div class="message success">
                 <?php foreach ($flashMessenger->getMessages() as $msg): ?>
                    <p><strong>Success!</strong> <?php echo $msg ?> </p>
                <?php endforeach; ?>
            </div>
        <?php   endif;?>

    <table id="table_liquid" cellspacing="0">
          <tr>
            <th class="left-border">Form Field</th>
            <th class="left-border">Category</th>
            <th class="left-border">Sub-Category</th>
            <th class="left-border">Sub-Category Label</th>
            <th class="left-border">Required(Y/N)</th>
            <th class="left-border">Field Type</th>
            <th class="left-border">Length</th>
            <th class="left-border">Input Type</th>

            <th>Options</th>
          </tr>

          <?php foreach ($this->liability_data as $d): ?>
            <tr>
                <td class="left-border"><?php echo  $this->Escape($d->FieldName); ?></td>
                <td class="left-border"><?php echo  $this->Escape($d->CategoryName); ?></td>
                <td class="left-border"><?php echo  $this->Escape($d->SubCategoryName); ?></td>
                <td class="left-border"><?php echo  $this->Escape($d->LabelName); ?></td>
                <td class="left-border"><?php if( $d->isRequired) echo 'Yes'; else echo 'No';  ?></td>
                <td class="left-border"><?php echo  $this->Escape($d->InputValidation); ?></td>
                <td class="left-border"><?php echo  $this->Escape($d->Length); ?></td>
                <td class="left-border"><?php echo  $this->Escape($d->InputType); ?></td>

                <td>
                    &nbsp;&nbsp;&nbsp;&nbsp;
                    <a href="<?php echo $this->url(array('controller'=> 'liability', 'action'=> 'edit', 'module'=> 'dataform', 'id' => $d->id ), 'edit-liability-data', true ) ?>" >Edit</a>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <a href="<?php echo $this->url(array('controller'=> 'liability', 'action'=> 'delete', 'module'=> 'dataform', 'id' => $d->id ), 'delete-liability-data', true ) ?>" >Delete</a>
                </td>
            </tr>
          <?php endforeach;?>

        </table>

    </div><!--end content_block-->
</div>